package com.bang.itstack.day09;

/**
 * @ClassName: SsoDecorator
 * @Desc: TODO
 * @author: <Bang>
 * @Date: 2021/10/22 14:29
 * @Version: 1.0
 * @Modified By:
 */
public abstract class SsoDecorator implements HandlerInterceptor {

    private HandlerInterceptor handlerInterceptor;

    public SsoDecorator(HandlerInterceptor handlerInterceptor) {
        this.handlerInterceptor = handlerInterceptor;
    }

    @Override
    public boolean preHandle(String request, String response, Object handler) {
        return handlerInterceptor.preHandle(request,response,handler);
    }
}
